<?php $this->placeholder('container-class')->set('post_ad success serp')?>
<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_serp.v-'.AC_VERSION.'.css'))?>
<article class="article">
    <section class="main_section">
	<section class="post_ad success">    <section class="ad medium"> <a href="#"><img src="<?php echo Ac_Util::getImageBaseUrl('/images/ad_300_250.jpg')?>"></a> </section>
<h3>你的信息发布成功！</h3>
<section class="posted_ad  result list ">
	<ul>
<li class="item"> 
	<dl>
		<dt>
			<figure>
				<a href="<?php echo $this->listing->url()?>">
					<img src="<?php echo $this->thumbnail()->scale($this->listing->featured_photo, 120, 120);?>">
				</a>
			</figure>
		</dt>
		<dd class="title">
			<h2><a href="<?php echo $this->listing->url()?>"><?php echo $this->listing->title?></a></h2>
		</dd>    
		<dd class="price">
			<span><?php echo $this->price($this->listing);?></span>
		</dd>
		<dd class="category">
			<?php $i = 0; if (!empty($this->listing->category)): ?>
                    <?php $tmp = $this->listing->category[0]->getParentTree();?>
                    <?php foreach((array)$tmp as $k => $cat):?>
                        <?php if (empty($this->mode) || $this->mode != 'preview'):?>
                                <a href="<?php echo $cat->url()?>" itemprop="url"><span itemprop="title"><?php echo $cat->name?></span></a> <?php if($i==0){ echo '&raquo;';}?>
                        <?php else:?>
                            <?php echo $cat->name?> <?php if($i==0){ echo '&raquo;';}?>
                        <?php endif;?>
                    <?php $i++; endforeach;?>
                <?php endif;?>
		</dd>
		<dd class="date"><?php echo date(MEDIUM_DATE_FORMAT, $this->listing->posted_at)?></dd>
		<dd class="user">
			<figure><a href="<?php echo $this->listing->user->url()?>"><img src="<?php echo $this->thumbnail()->scale($this->listing->user->pp, 37, 37, true, true);?>" alt="<?php echo $this->listing->user->name?>"></a></figure>
			<a href="<?php echo $this->listing->user->url()?>" class="name"><?php echo $this->listing->user->name?></a>
			<span><?php echo (!empty($this->listing->rmrk)) ? '""'.$this->listing->rmrk.'""' : ''; ?></span>
		</dd>
	
	</dl>
</li>
	</ul>
</section>
<h4>查看我发布的信息<a href="<?php echo $this->listing->url()?>">立即前往<span>&gt;</span></a></h4>
<h4>还有信息想要发布？<a href="<?php echo $this->geturl('post-an-ad','listing')?>">发布新信息<span>&gt;</span></a></h4>
<h4>大量信息需要发布？<a href="<?php echo $this->geturl('bulk-listing','default', null, 'default1')?>">前往商家免费营销服务<span>&gt;</span></a></h4>

<section class="gallery hor box">
    <h3>看看其他类似信息怎么说的</h3>
	<ul>
		<?php if ($this->similar_ads_other):?>
			<?php foreach($this->similar_ads_other as $item):?>
				<li>
					<?php
						$this->partial()->setObjectKey('model');
						echo $this->partial(
							'index/listing-element.phtml',
							'search',
							array(
								'item'                  => $item,
								'photo_width'           => 144,
								'photo_height'          => 144,
								'photo_params'          => array(),
								'display_photo_if_not_exists' => true,
								'display_date'                => false,
								'display_category'            => false,
								'display_customization'       => false,                                        
						));
					?>

			   </li>
			<?php endforeach;?>
		<?php endif;?>
	</ul>
</section> 
    </section>
    </section>
    <aside class="aside">



    </aside>
  </article>
